<?php echo $javascript->link('flot/jquery.flot.js', false); ?>
<div class="graph" id="g1" style="height:100px; background: #f2f2f2; margin-bottom: 15px">
	Graph kommer her..
</div>
<script type="text/javascript">
$(function () {
    var d1 = [];
    for (var i = 0; i < 14; i += 0.5)
        d1.push([i, Math.sin(i)]);

    var d2 = [[0, 3], [4, 8], [8, 5], [9, 13]];

    $.plot($("#g"), [
		{
			label: "No 1",
			data: d1,
			lines: { show: true, fill: true },
			points: { show: true }
		},
		{
			data: d2,
			bars: { show: true }
		}
    ],{
		legend: {show: true},
		xaxis: {
		    mode: "time",
		    timeformat: "%y/%m/%d"
		  },
		grid: {
			backgroundColor: { colors: ["#fff", "#eee"] }
		}
});
});
</script>